import request from '@/utils/request'

// 查询警告发送记录列表
export function listwarnSendInfo(query) {
  return request({
    url: '/business/warnSendInfo/list',
    method: 'get',
    params: query
  })
}

// 查询警告发送记录详细
export function getwarnSendInfo(id) {
  return request({
    url: '/business/warnSendInfo/' + id,
    method: 'get'
  })
}

// 新增警告发送记录
export function addwarnSendInfo(data) {
  return request({
    url: '/business/warnSendInfo',
    method: 'post',
    data: data
  })
}

// 修改警告发送记录
export function updatewarnSendInfo(data) {
  return request({
    url: '/business/warnSendInfo',
    method: 'put',
    data: data
  })
}

// 删除警告发送记录
export function delwarnSendInfo(id) {
  return request({
    url: '/business/warnSendInfo/' + id,
    method: 'delete'
  })
}

// 导出警告发送记录
export function exportwarnSendInfo(query) {
  return request({
    url: '/business/warnSendInfo/export',
    method: 'get',
    params: query
  })
}